﻿using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

namespace TLTuan.App.TransferObj
{
    public class CTaiLieu
    {
        #region Feild ...

        int _PK_TailieuID;
        string _maTaiLieu;
        string _tenTaiLieu;
        int _FK_NguoidangID;
        string _mota;
        string _link;
        int _dungluong;
        int _diem;
        DateTime _ngaydang;
        int _FK_ChungloaiID;
        int _FK_NhomTLID;

        #endregion

        #region Interface ...


        public int PK_TailieuID
        {
            get { return _PK_TailieuID; }
            set { _PK_TailieuID = value; }
        }
        public string MaTaiLIeu
        {
            get { return _maTaiLieu; }
            set { _maTaiLieu = value; }
        }
        public string TenTaiLieu
        {
            get { return _tenTaiLieu; }
            set { _tenTaiLieu = value; }
        }
        public int FK_NguoidangID
        {
            get { return _FK_NguoidangID; }
            set { _FK_NguoidangID = value; }
        }
        public string Mota
        {
            get { return _mota; }
            set { _mota = value; }
        }
        public string Link
        {
            get { return _link; }
            set { _link = value; }
        }
        public int Dungluong
        {
            get { return _dungluong; }
            set { _dungluong = value; }
        }
        public int diem
        {
            get { return _diem; }
            set { _diem = value; }
        }

        public DateTime Ngaydang
        {
            get { return _ngaydang; }
            set { _ngaydang = value; }
        }
        public int FK_ChungloaiID
        {
            get { return _FK_ChungloaiID; }
            set { _FK_ChungloaiID = value; }
        }
        public int FK_NhomTLID
        {
            get { return _FK_NhomTLID; }
            set { _FK_NhomTLID = value; }
        }
        #endregion

        public CTaiLieu()
        {

        }

        public CTaiLieu(int ip_ID)
        {
            _PK_TailieuID = ip_ID;
        }

        public CTaiLieu(int ip_ID, string ip_maTaiLieu, string ip_tnTaiLieu, int ip_FK_NguoidangID,
            string ip_mota, string ip_link, int ip_dungluong, int ip_diem,
            DateTime ip_ngaydang, int ip_ChungloaiID, int ip_NhomTLID)
        {
            _PK_TailieuID = ip_ID;
            _maTaiLieu = ip_maTaiLieu;
            _tenTaiLieu = ip_tnTaiLieu;
            _FK_NguoidangID = ip_FK_NguoidangID;
            _mota = ip_mota;
            _link = ip_link;
            _dungluong = ip_dungluong;
            _diem = ip_diem;
            _ngaydang = ip_ngaydang;
            _FK_ChungloaiID = ip_ChungloaiID;
            _FK_NhomTLID = ip_NhomTLID;
        }
    }
}